package moco.blatt4.myfragments;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class DetailFragment extends Fragment {
	
public DetailFragment() {
}

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
	return inflater.inflate(R.layout.detailfragmentlayout, container, false);
}

public void setDetailText(String text) {
	TextView textview = (TextView) getView().findViewById(R.id.textViewDetailText);
	textview.setText(text);
}

}
